import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/views/Login'
import Home from '@/views/Home/index.vue'
import Book from '@/views/Book/index.vue'
import Borrow from '@/views/Borrow/index.vue'
import Set from '@/views/Set/index.vue'


Vue.use(VueRouter)

const routes = [
  { name: 'login', path: '/login', component: Login },
  { name: 'Home', path: '/', component: Home },
  { name: 'Book', path: '/book', component: Book },
  { name: 'Borrow', path: '/borrow', component: Borrow },
  { name: 'Set', path: '/set', component: Set },
]

const router = new VueRouter({
  routes
})

export default router
